package com.gxa.service.impl;

import com.gxa.domain.dto.AssetsOperationDTO;
import com.gxa.domain.entity.AssetsOperation;
import com.gxa.domain.vo.AssetsOperationVO;
import com.gxa.mapper.AssetsOperationMapper;
import com.gxa.service.AssetsOperationService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * User: gxb
 * Date: 2024/07/19  10:20
 * Description:
 * Version: V1.0
 */
@Service//IOC注解  把当前service创建一个对象 交给spring进行管理
@Transactional//开启事务 事务是指逻辑上的一组要操作，要么都成功，要么都是失败
public class AssetsOperationServiceImpl implements AssetsOperationService {
    @Autowired
    private AssetsOperationMapper assetsOperationMapper;
    @Override
    public List<AssetsOperationVO> findAssetsOperationAll() {
        return assetsOperationMapper.findAssetsOperationAll();
    }

    @Override
    public List<AssetsOperation> findAssetsOperationByWhere(AssetsOperationDTO assetsOperationDTO) {
        return assetsOperationMapper.findAssetsOperationByWhere(assetsOperationDTO);
    }
    //查询所有库存

}
